<{include file="public/header.tpl"}>

<article>
  <div class="l_box f_l">
    <!-- banner代码 结束 -->
    <div class="topnews">
      <h2>
      当前位置: 
        <{ section name=loc loop=$locs }>
          <a href="<{$app}>/article/lists/pid/<{ $locs[loc].id }>" title="<{ $locs[loc].description }>"><{ $locs[loc].title|truncate:18 }></a>
        <{ /section }>
      </h2>  
       <{section loop=$arts name="ls"}>
          <div class="blogs">
          <figure><img src="<{$public}>/uploads/<{$arts[ls].imgname}>"></figure>
          <ul>
            <h3><a href="<{$app}>/article/details/aid/<{$arts[ls].id}>"><{$arts[ls].title}></a></h3>
            <p><{$arts[ls].summary|truncate:200}></p>
            <p class="autor"><span class="lm f_l"><a href="/">个人博客</a></span>
            <span class="dtime f_l"><{$arts[ls].posttime|date_format:"%Y-%m-%d" }></span>
            <span class="viewnum f_r">浏览（<a href="/"><{$arts[ls].views}></a>）</span>
            <span class="pingl f_r">评论（<a href="/">30</a>）</span></p>
          </ul>
        </div>
        <{sectionelse}>
        暂无文章
        <{/section}>
    </div>
    <span  style="float:right;">
        <{$fpage}>
    </span> 
  </div>
  <div class="r_box f_r">
    <div class="tit01">
      <h3>关注我</h3>
      <div class="gzwm">
        <ul>
          <li><a class="xlwb" href="#" target="_blank">新浪微博</a></li>
          <li><a class="txwb" href="#" target="_blank">腾讯微博</a></li>
          <li><a class="rss" href="portal.php?mod=rss" target="_blank">RSS</a></li>
          <li><a class="wx" href="mailto:admin@admin.com">邮箱</a></li>
        </ul>
      </div>
    </div>
    <div class="cloud">
      <h3>栏目分类</h3>
      <ul>
        <{section loop=$cols name="ls"}>
        <li><a href="<{$app}>/article/lists/pid/<{$cols[ls].id}>"><{$cols[ls].title}></a></li>
        <{sectionelse}>
        暂无分类
        <{/section}>
      </ul>
    </div>
    <!--tit01 end-->
    <!--adv <div class="ad300x100"> <img src="<{$res}>/images/ad300x100.jpg"> </div> end-->
    <div class="moreSelect" id="lp_right_select"> 
      <script>
      window.onload = function ()
      {
        var oLi = document.getElementById("tab").getElementsByTagName("li");
        var oUl = document.getElementById("ms-main").getElementsByTagName("div");
        
        for(var i = 0; i < oLi.length; i++)
        {
          oLi[i].index = i;
          oLi[i].onmouseover = function ()
          {
            for(var n = 0; n < oLi.length; n++) oLi[n].className="";
            this.className = "cur";
            for(var n = 0; n < oUl.length; n++) oUl[n].style.display = "none";
            oUl[this.index].style.display = "block"
          } 
        }
      }
      </script>
      <div class="ms-top">
        <ul class="hd" id="tab">
          <li class="cur"><a href="#">最新文章</a></li>
          <li><a href="#">点击排行</a></li>
          <li><a href="#">站长推荐</a></li>
        </ul>
      </div>
      <div class="ms-main" id="ms-main">
        <div style="display: block;" class="bd bd-news" >
          <ul>
             <{section loop=$news name="ls" max=6 }>
              <li><a href="<{$app}>/article/details/aid/<{$news[ls].id}>"><{$news[ls].title}></a></li>
             <{sectionelse}>
              暂无最新文章
             <{/section}>
          </ul>
        </div>
        <div  class="bd bd-news">
          <ul>
             <{section loop=$hots name="ls" max=6 }>
              <li><a href="<{$app}>/article/details/aid/<{$hots[ls].id}>"><{$hots[ls].title}></a></li>
             <{sectionelse}>
              暂无热门文章
             <{/section}>
          </ul>
        </div>
        <div class="bd bd-news">
          <ul>
             <{section loop=$recommends name="ls" max=6 }>
              <li><a href="<{$app}>/article/details/aid/<{$recommends[ls].id}>"><{$recommends[ls].title}></a></li>
             <{sectionelse}>
              暂无推荐
             <{/section}>
          </ul>
        </div>
      </div>
      <!--ms-main end --> 
    </div>
    <!--切换卡 moreSelect end -->
    <div class="tuwen">
      <h3>热门文章</h3>
      <ul>
           <{section loop=$hots name="ls" max=6}>
             <li><a href="<{$app}>/article/details/aid/<{$hots[ls].id}>">
             <img src="<{$public}>/uploads/<{$hots[ls].imgname}>">
             <b><{$hots[ls].title|truncate:28}></b></a>
             <p><span class="tulanmu"><a href="#">个人博客</a></span>
             <span class="tutime"><{$hots[ls].posttime|date_format:"%Y-%m-%d" }></span></p>
             </li>
           <{sectionelse}>
           暂无热门文章
           <{/section}>
      </ul>
    </div>
    <div class="links">
      <h3><span>[<a href="#">申请友情链接</a>]</span>友情链接</h3>
      <ul>
        <{section loop=$links name="ls"}>
        <li><a href="<{$links[ls].url}>"><{$links[ls].webname}></a></li>
        <{sectionelse}>
        <li><a href="#">暂无链接</a></li>
        <{/section}>
      </ul>
    </div>
  </div>
  <!--r_box end --> 
</article>

<{ include file="public/footer.tpl" }>
